package com.example.springbootmybatis.mapper;

import com.example.springbootmybatis.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository //注册到spring
@Mapper //表示这是一个mybatis的Mapper类
public interface UserMapper {
    List<User> selectAll();

    User selectByname(String name);

}
